<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateAdminInfoTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('admin_info', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedBigInteger('admin_id',false)->default(0)->index()->comment('管理员id');
            $table->string('real_name',30)->nullable()->comment('真实姓名');
            $table->string('contact_tel',15)->nullable()->comment('联系电话');
            $table->timestamps();
            $table->softDeletes();
            $table->engine="Innodb";
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('admin_info');
    }
}
